import Vue from 'vue'
import Router from 'vue-router'
import login from '@/page/login/login'
import home from '@/page/home/home'
import goodList from '@/page/goodList/goodList'
import shopCar from '@/page/shopCar'
import chooseAddress from '@/page/chooseAddress'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: '登录',
      component:login
    },
    {
      path:'/',
      name:"主页",
      component:home
    },
    {
      path:'/goodList',
      name:"商品列表",
      component:goodList
    },
    {
      path:'/shopCar',
      name:"购物车",
      component:shopCar
    },
    {
      path:'/chooseAddress',
      name:"地址列表",
      component:chooseAddress
    },
  ]
})
